package com.mrgood.rest;

import com.mrgood.config.FeignLogConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "sina", url = "${service-b}", configuration = FeignLogConfig.class)
public interface ServiceB {
    @RequestMapping(value = "/pathb/b", method = RequestMethod.GET)
    String get1(@RequestParam String name);
}
